package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SStallInfo extends Object implements IMessageBase
    {
        public var miniPlayer:SPublicMiniPlayer;
        public var name:String;
        public var items:Dictionary;
        public var introduce:String;
        public const _type:int = 20302;
        public static var _regist:SStallInfo = new SStallInfo(true);

        public function SStallInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SStallInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.miniPlayer.__write(param1);
            param1.writeString(this.name);
            DictBusinessItemUpdateHelper.write(param1, this.items);
            param1.writeString(this.introduce);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(param1);
            this.name = param1.readString();
            this.items = DictBusinessItemUpdateHelper.read(param1);
            this.introduce = param1.readString();
            
        }

    }
}
